package com.study.constant;

/**
 * @author canace
 * @version 1.0
 * @description 分布式锁关键字
 * @date 2024/2/3 19:54
 */
public class RedissonLockConstant {

    /**
     * 用户注册分布式锁
     */
    public static final String LOCK_USER_REGISTER_KEY = "short-link:lock_user-register:";

    /**
     * 用户修改信息分布式锁
     */
    public static final String LOCK_USER_UPDATE_KEY = "short-link:lock_user-update:";
    /**
     * 分组创建分布式锁
     */
    public static final String LOCK_GROUP_CREATE_KEY = "short-link:lock_group-create:%s";

    /**
     * 分组更新分布式锁
     */
    public static final String LOCK_GROUP_UPDATE_KEY = "short-link:lock_group-update:";

    /**
     * 短链接创建分布式锁
     */
    public static final String LOCK_SHORT_LINK_CREATE_KEY = "short-link:lock_short-link-create:";

    /**
     * 短链接监控服务分布式锁
     */
    public static final String LOCK_SHORT_LINK_STATS_KEY = "short-link:lock_short-link-stats:";
}
